package org.Keks.example.Sprites;

import java.awt.Canvas;
import java.awt.Graphics;

import javax.swing.JFrame;

import org.Keks.KeksGame;


/**
 * The main main MAIN (!!!) class of our project.
 * This is the only class where our good old java AWT does the visible graphics work.
 * @author kevin
 *
 */
public class Example01_Sprites extends KeksGame {
	private static final long serialVersionUID = 1L;

	/*public static void main(String[] args) {
		Example01_Sprites sb = new Example01_Sprites();
		JFrame frame = new JFrame();
		gamemap = new SpritesMap(keys, (Canvas)sb);

		//Main method where a JFrame is created that contains our canvas.
		frame.add(sb, 0);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setResizable(false);
		frame.setVisible(true);
		frame.pack();
		frame.setLocationRelativeTo(null);
		sb.start();
	}*/

	public void run() {
		super.run();
	}
	
	/**
	 * Method which is called every frame. Must contain tick() from Map class.
	 */
	public void tick() {
		super.tick();
	}
	
	public void init() {
		super.init();
	}
	
	public void start() {
		super.start();
	}
	
	public void stop() {
		super.stop();
	}
	
	public void paint(Graphics g) {
		super.paint(g);
	}
}
